ARD2  1.00 for Rev B. Hardware
Airbag Reference Demonstrator using MPC5604P
Deployment.h File Reference

Deployment state for the ARD2 application. More...

Go to the source code of this file.

Defines

#define TRUE   (1u)
#define CLEAR   (0u)
#define BITS_IN_NIBBLE   (4u)
#define BITS_IN_BYTE   (8u)
#define BYTES_IN_16   (2u)
#define BYTES_IN_32   (4u)
#define BIT_DEFINITION
#define BIT0   (1u << 0u)
#define BIT1   (1u << 1u)
#define BIT2   (1u << 2u)
#define BIT3   (1u << 3u)
#define BIT4   (1u << 4u)
#define BIT5   (1u << 5u)
#define BIT6   (1u << 6u)
#define BIT7   (1u << 7u)
#define BIT8   (1u << 8u)
#define BIT9   (1u << 9u)
#define BIT10   (1u << 10)
#define BIT11   (1u << 11)
#define BIT12   (1u << 12)
#define BIT13   (1u << 13)
#define BIT14   (1u << 14)
#define BIT15   (1u << 15)
#define BIT16   (1u << 16)
#define BIT17   (1u << 17)
#define BIT18   (1u << 18)
#define BIT19   (1u << 19)
#define BIT20   (1u << 20)
#define BIT21   (1u << 21)
#define BIT22   (1u << 22)
#define BIT23   (1u << 23)
#define BIT24   (1u << 24)
#define BIT25   (1u << 25)
#define BIT26   (1u << 26)
#define BIT27   (1u << 27)
#define BIT28   (1u << 28)
#define BIT29   (1u << 29)
#define BIT30   (1u << 30)
#define BIT31   (1u << 31)
#define DEPLOYMENT_ERR_SAT_AND_SQUIBS_DEPLOYED   ((uint32_t)BIT13)
#define N_ELEMENTS(X)   (sizeof(X)/sizeof(*(X)))

Functions

uint32_t u32fnDeploymentStatusReport (const uint16_t cu16ExpectedFiring, uint16_t *pu16FiredSquibs, uint8_t *pu8NextState)
 Figures out what squibs were (or not) fired.
void vfnGUISendDeploymentEvent (void)
 Sends a verbose message to the GUI in case of deployment.

Detailed Description

Deployment state for the ARD2 application.

Copyright (C) 2011 Freescale Semiconductor Freescale Confidential Proprietary

Author:
Freescale Semiconductor
SASD Automotive
r11515
Version:
Date:
Warning:
(If needed)

History:


Function Documentation

uint32_t u32fnDeploymentStatusReport ( const uint16_t  cu16ExpectedFiring,
uint16_t *  pu16FiredSquibs,
uint8_t *  pu8NextState 
)

Figures out what squibs were (or not) fired.

Parameters:
cu16ExpectedFiring,:Mask list of squibs that should fire.
pu16FiredSquibs,:Pointer to a mask list of all squibs that have been fired.
pu8NextState,:Pointer to memory location where the next state value will be determined based on the fired squibs.
Returns:
u32Status: CLEAR if all went well, STATUS_DATA_TRANSFER_ERROR, STATUS_SCHEDULER_PROBLEM, or the list of squibs that were expected to fire but didn't otherwise.
void vfnGUISendDeploymentEvent ( void  )

Sends a verbose message to the GUI in case of deployment.

Parameters:
None
Returns:
Void.